package com.jdzy.model.teacher.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jdzy.model.common.pojos.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "菜单表")
@TableName("sys_menu")
public class SysMenu extends BaseEntity {
    @ApiModelProperty(value = "所属上级")
    @TableField(value = "parent_id")
    private Long parentId;

    @ApiModelProperty(value = "菜单标题")
    @TableField(value = "title")
    private String title;
    @ApiModelProperty(value = "组件名称")
    @TableField(value = "component")
    private String component;
    @ApiModelProperty(value = "排序")
    @TableField(value = "sort_value")
    private Integer sortValue;
    @ApiModelProperty(value = "状态")
    @TableField(value = "status")
    private Integer status;

    // 下级列表
    @ApiModelProperty(value = "下级列表")
    private List<SysMenu> children;
}
